package com.service.screenWeb.service;

import com.service.screenWeb.dto.PosterDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FileService {
    /**
     * 上传轮播图
     * @param file
     * @param assemblyId
     * @param programmeId
     * @param interval
     * @throws Exception
     */
    void uploadSlide(MultipartFile file, String assemblyId,String programmeId,String interval) throws Exception;

    /**
     * 上传海报
     * @param file
     * @param assemblyId
     * @param programmeId
     * @throws Exception
     */
    void uploadPoster(MultipartFile file, String assemblyId,String programmeId) throws Exception;

    public Integer findFileByAssemblyId(String assemblyId,String programmeId);
    public void deleteFileByAssemblyId(String assemblyId,String programmeId);

    PosterDto getPosterDic(String assemblyId,String programmeId);

    List<PosterDto> getSlideInfo(String assemblyId,String programmeId);

    void updateInterval(String assemblyId, String programmeId, String interval);
}
